IProducerConsumerCollection(T) Interface

Task Parallel System.Threading

Defines methods to manipulate thread-safe collections intended for producer/consumer usage.

Namespace:  System.Collections.Concurrent
Assembly:  System.Threading (in System.Threading.dll)

Syntax

Visual Basic (Declaration)
Public Interface IProducerConsumerCollection(Of T) _
	Implements IEnumerable(Of T), ICollection, IEnumerable
C#
public interface IProducerConsumerCollection<T> : IEnumerable<T>, 
	ICollection, IEnumerable

Type Parameters

T
Specifies the type of elements in the collection.

Remarks

All implementations of this interface must enable all members of this interface to be used concurrently from multiple threads.

See Also